﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NUnit.Framework;

namespace Ruleweaver
{
	[TestFixture]
	public class NullityFixture
	{
		[Test]
		public void NullIsNullPasses()
		{
			Assert.IsTrue(Check.That(null as string).IsNull());
		}

		[Test]
		public void EmptyStringIsNullFails()
		{
			Assert.IsFalse(Check.That("").IsNull());
		}

		[Test]
		public void NullIsNotNullFails()
		{
			Assert.IsFalse(Check.That(null as string).IsNotNull());
		}

		[Test]
		public void EmptyStringIsNotNullPasses()
		{
			Assert.IsTrue(Check.That("").IsNotNull());
		}
	}
}